package com.itheima.method;

public class MethodPractise01 {
    public static void main(String[] args) {
        getSum(10,20);
        System.out.println(getSum(10,20));
        method();

    }
    public static int getSum(int a, int b) {
        return a + b;
    }
    public static void method(){
        System.out.println("这是方法1");
        method2();
    }
    public static void method2(){
        System.out.println("这是方法2");
        method3();
    }
    public static void method3(){
        System.out.println("这是方法3");
        //method();

    }
}
